import Vue from 'vue';
import App from './App';

Vue.config.productionTip = false;

import request from '@/utils/request';
Vue.prototype.$http = request;

import * as Db from '@/utils/auth';
Vue.prototype.$db = Db;

Vue.prototype.$to = (url) => {
  uni.navigateTo({
    url
  });
};

Vue.prototype.$global = {
  baseUrl: 'http://wuhu.njwhd.com/api/index/',
  domain: 'http://wuhu.njwhd.com'
};
App.mpType = 'app';

const app = new Vue({
  ...App
});
app.$mount();
